package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工单记录，用于跟踪故障的维修工作进度对象 workorders
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
public class Workorders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工单唯一标识符 */
    private Long id;

    /** 关联的故障唯一标识符，外键到Faults表 */
    @Excel(name = "关联的故障唯一标识符，外键到Faults表")
    private Long faultId;

    /** 设备Mac */
    @Excel(name = "设备Mac")
    private String faultMac;

    /** 工单创建人ID */
    @Excel(name = "工单创建人ID")
    private Long creatorId;

    /** 工单创建人名称 */
    @Excel(name = "工单创建人名称")
    private String creatorName;

    /** 维修人员ID */
    @Excel(name = "维修人员ID")
    private Long technicianId;

    /** 维修人员名称 */
    @Excel(name = "维修人员名称")
    private String technicianName;

    /** 维修工作开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修工作开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 维修工作结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修工作结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 工单状态 */
    @Excel(name = "工单状态")
    private String status;

    /** 维修工作备注信息 */
    @Excel(name = "维修工作备注信息")
    private String notes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFaultId(Long faultId) 
    {
        this.faultId = faultId;
    }

    public Long getFaultId() 
    {
        return faultId;
    }
    public void setFaultMac(String faultMac)
    {
        this.faultMac = faultMac;
    }

    public String getFaultMac()
    {
        return faultMac;
    }
    public void setCreatorId(Long creatorId) 
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() 
    {
        return creatorId;
    }
    public void setCreatorName(String creatorName) 
    {
        this.creatorName = creatorName;
    }

    public String getCreatorName() 
    {
        return creatorName;
    }
    public void setTechnicianId(Long technicianId) 
    {
        this.technicianId = technicianId;
    }

    public Long getTechnicianId() 
    {
        return technicianId;
    }
    public void setTechnicianName(String technicianName) 
    {
        this.technicianName = technicianName;
    }

    public String getTechnicianName() 
    {
        return technicianName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("faultId", getFaultId())
            .append("faultMac", getFaultMac())
            .append("creatorId", getCreatorId())
            .append("creatorName", getCreatorName())
            .append("technicianId", getTechnicianId())
            .append("technicianName", getTechnicianName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("notes", getNotes())
            .toString();
    }
}
